package com.kuang.demo.mapper.wx;

import com.kuang.demo.bean.wx.Comment;
import com.kuang.demo.bean.wx.CommentExample;
import java.util.List;

import com.kuang.demo.vo.wx.Comment4ListVo;
import org.apache.ibatis.annotations.Param;

public interface CommentMapper {
    long countByExample(CommentExample example);

    int deleteByExample(CommentExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Comment record);

    int insertSelective(Comment record);

    List<Comment> selectByExample(CommentExample example);

    Comment selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Comment record, @Param("example") CommentExample example);

    int updateByExample(@Param("record") Comment record, @Param("example") CommentExample example);

    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKey(Comment record);

    List<Comment4ListVo> queryCommentLisByTypeAndHasPicAndValueId(
            @Param("type") int type,
            @Param("showType") int showType,
            @Param("valueId") int valueId);}